import * as types from './mutation-types'

const mutations = {
  [types.SET_SHOWCOMPINDEX](state, index) {
    state.showCompIndex = index
  },
  [types.SET_PREVCOMPINDEX](state, index) {
    state.prevCompIndex = index
  },
  [types.SET_HEADERSTYLE](state, obj) {
    state.headerStyle = obj
  }
}

export default mutations